package mvc.command.character
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;

	import define.Localization;

	import iris.managers.IrisPopUpManager;

	import view.design.DesignCharacter;
	import view.design.DesignConfirm;

	public class RemoveCharacterCmd extends CharacterCmd implements ICommand
	{
		public function execute(event:CairngormEvent):void
		{
			var dsnCharacter:DesignCharacter = event.data.dsnCharacter;

			var confirm:DesignConfirm = IrisPopUpManager.createPopUp(
				_dsnCharacters.tabCharacters, DesignConfirm, true, null,
				IrisPopUpManager.LOCATE_PARENT_CENTER, IrisPopUpManager.EFFECT_BLUR) as DesignConfirm;

			confirm.source = dsnCharacter;
			confirm.information = Localization.instance.s("confirm_delete_character")
				+ "\n\t" + dsnCharacter.tblCharacterVO.char_name;
		}
	}
}